package com.jingtai.core.entity.supply;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 供应商商品属性表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_supply_goods_warehouse")
@ApiModel(value = "供应商商品属性表", description = "供应商商品属性表")
public class SupplyGoodsWarehouse  extends BaseEntity implements Serializable {

	/**
	 * sku编码-属性编码
	 */
	@CApiModelProperty(value = "sku编码")
	private String skuCode;


	/**
	 * 商品编码
	 */
	@CApiModelProperty(value = "商品编码",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String goodsCode;

	/**
	 * 供应商id
	 */
	@CApiModelProperty(value = "供应商id")
	private String supplyId;

	/**
	 * 属性规格json
	 */
	@CApiModelProperty(value = "属性名称",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String name;

	/**
	 * 属性规格json
	 */
	@CApiModelProperty(value = "属性规格json",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String specificationsJson;

	/**
	 * 成本价
	 */
	@CApiModelProperty(value = "成本价",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private BigDecimal costPrice;

	/**
	 * 售价
	 */
	@CApiModelProperty(value = "售价",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private BigDecimal salePrice;

	/**
	 * 展示图
	 */
	@CApiModelProperty(value = "展示图",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String showImage;

	/**
	 * 总库存
	 */
	@CApiModelProperty(value = "总库存",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer totalInventory;

	/**
	 * 预售库存
	 */
	@CApiModelProperty(value = "预售库存",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer bookInveentory;

}
